import request from '@/utils/request'

// 查询绩效评分标准列表
export function listPce(query) {
  return request({
    url: '/oa/pce/list',
    method: 'get',
    params: query
  })
}

// 查询绩效评分标准详细
export function getPce(criterionId) {
  return request({
    url: '/oa/pce/' + criterionId,
    method: 'get'
  })
}

// 新增绩效评分标准
export function addPce(data) {
  return request({
    url: '/oa/pce',
    method: 'post',
    data: data
  })
}

// 修改绩效评分标准
export function updatePce(data) {
  return request({
    url: '/oa/pce',
    method: 'put',
    data: data
  })
}

// 删除绩效评分标准
export function delPce(criterionId) {
  return request({
    url: '/oa/pce/' + criterionId,
    method: 'delete'
  })
}
